<div class="tuans index">
<h2><?php __('Thông Tin Tuần');?></h2>
<dl>
<strong><?php echo 'Học kỳ:'; ?>
			<?php echo $hknk['Hknk']['hknk']; ?></strong>
			&nbsp;
		</dd>
</dl>
<p>
<?php
echo $paginator->counter(array(
/*'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)*/
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT');?></th>
	<th><?php echo $paginator->sort('Học kỳ niên khóa', 'tuan.hknk_id');?></th>
	<th><?php echo $paginator->sort('Tuần', 'tuan.tuan');?></th>
	<th><?php echo $paginator->sort('Ngày bắt đầu', 'tuan.ngaybd');?></th>
	<th><?php echo $paginator->sort('Ngày kết thúc', 'tuan.ngaykt');?></th>
	<th class="actions"><?php __('Thao tác');?></th>
</tr>
<?php
$i = 0;
foreach ($tuans as $tuan):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $tuan['Tuan']['id']; ?>
		</td>
		<td>
			<?php echo $html->link($tuan['Hknk']['hknk'], array('controller' => 'hknks', 'action' => 'view', $tuan['Hknk']['id'])); ?>
		</td>
		<td>
			<?php echo $tuan['Tuan']['tuan']; ?>
		</td>
		<td>
			<?php echo $tuan['Tuan']['ngaybd']; ?>
		</td>
		<td>
			<?php echo $tuan['Tuan']['ngaykt']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $tuan['Tuan']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $tuan['Tuan']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $tuan['Tuan']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm tuần', true), array('action' => 'add')); ?></li>
		
	
</div>
